<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户详情页</title>
</head>
<body>
<h1>用户详情</h1>
<p>用户名：<span th:text="${user.name}">张三</span></p>
<p>年龄：<span th:text="${user.age}">12</span></p>
<p>手机号：<span th:text="${user.phone}">13411112222</span></p>
<p>性别：<span th:text="${user.gender}"></span></p>
<p>部门：<span th:text="${user.dept.deptName}"></span></p>  <!--user.getDept().getDeptName()-->
<p>部门经理：<span th:text="${user.dept.manager}"></span></p>
</body>
</html>